package T;

public class Rectangular {
    //成员变量
    private double length;
    private double width;

    public double getLength(){
        return length;
    }
    public  void setLength(double length){
        this.length=length;
    }
    public  double getWidth(){
        return width;
    }
    public void setWidth(double width){
        this.width=width;
    }
    //成员方法
    public double area(){
        return width*length;
    }
}
